package com.z6school.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.z6school.manage.po.Curriculum;
import org.apache.ibatis.annotations.Select;

public interface CurriculumMapper extends BaseMapper<Curriculum> {

    @Select("select credit from curriculum where id=#{id}")
    Double findCreditByCurrId(Integer id);

    @Select("select name from curriculum where id=#{currId}")
    String findNameById(Integer currId);
}
